-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable hover animation on preview frame for classic themes #68976
Disable hover animation on preview frame for classic themes #68976
Conversation
👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @singhakanshu00! In case you missed it, we'd love to have you join us in our Slack community. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. |
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
I think this PR will disable zoom not only in classic theme but also in block theme.
@carolinan @stokesman What is expected here is to disable zoom only in classic theme, right?
If so, I think we can reuse isBlockTheme
here without introducing a new prop to ResizableFrame
component.
Yes |
Thanks @t-hamano for the input. Modified the changes in the recent commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works. Thank you 🙇
Noting that removing the hover animation for classic themes was considered ideal #66851 (comment) in the very PR that brought the preview to classic themes—I'm merging it. |
nice, I missed that comment. |
…s#68976) Co-authored-by: singhakanshu00 <[email protected]> Co-authored-by: t-hamano <[email protected]> Co-authored-by: carolinan <[email protected]> Co-authored-by: stokesman <[email protected]>
What?
closes #68948
Why?
How?
ResizableFrame
component to disable the zoom and can be passed from where the component is rendered.Testing Instructions
Screenshots or screencast
Before:
Screen.Recording.2025-01-31.at.12.57.59.PM.mov
After:
Screen.Recording.2025-01-31.at.12.58.31.PM.mov